ImageButton
Section: ET++ class description (n)
Updated: automatically Thu Mar 21 20:12:53 1991
Index
Return to Main Contents
NAME
ImageButton.short - a button with a graphic image
DESCRIPTION
The ImageButton is used to trigger an action, similar to the class ActionButton. But instead of a string or a VObject it contains two bitmaps. The first one is drawn when the button is unselected. The second is displayed as a feedback to the user as long as the button is pressed. On selection the ImageButton sends its id and the partcode cPartToggle via Control to its next event handlers.
classes are never derived from ImageButton.
class ImageButton
is sometimes reused directly.
class ImageButton contains 7 methods.
- owner of class:
-
nobody.
- baseclasses:
-
Button
- subclasses:
-
ScrollBarButton
- flags:
-
ButtonFlags
INSTANCE VARIABLES
- bm1 (protected Bitmap *)
-
This bitmap is displayed when the button is unselected. bm1 must not be NULL.
- bm2 (protected Bitmap *)
-
This bitmap is displayed as a feedback to the user as long as the button is pressed. bm2 must not be NULL.
- idleEvents (protected bool)
-
controls whether idle events are reported during selection of the button. Its effect is the same as the flag eButtonIdle (see method Button::DoOnItem).
Known Problems:
idleEvents should be stored in the flag eButtonIdle. Overriding DoLeftButtonDownCommand would not be necessary then.
INSTANCE METHOD LIST
- client interface
-
ImageButton
- implementation
-
DoLeftButtonDownCommand
DrawInner
GetMinSize
PrintOn
ReadFrom
~ImageButton
CATEGORIES
Simple Dialog Items
FILES
- declaration:
-
Buttons.h
HISTORY
joe@csesbg.at Fri Sep 06 10:50 1991 MET DST
Index
- NAME
-
- DESCRIPTION
-
- INSTANCE VARIABLES
-
- INSTANCE METHOD LIST
-
- CATEGORIES
-
- FILES
-
- HISTORY
-
This document was created by
man2html,
using the manual pages.
Time: 00:40:27 GMT, March 30, 2022